﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Communications.Configuration
{
    /// <summary>
    /// Email Delivery Settings...
    /// </summary>
    /// <seealso cref="System.Configuration.ConfigurationElement" />
    public class EmailDeliverySettings : ConfigurationElement
    {
        /// <summary>
        /// Gets the address to send disposition notification email...
        /// </summary>
        /// <value>
        /// The disposition notification to.
        /// </value>
        [ConfigurationProperty("dispositionNotificationTo", IsRequired = true, IsKey = false)]
        public string DispositionNotificationTo
        {
            get { return (string)this["dispositionNotificationTo"]; }
            set { this["dispositionNotificationTo"] = value; }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [require delivery success receipt].
        /// </summary>
        /// <value>
        /// <c>true</c> if [require delivery success receipt]; otherwise, <c>false</c>.
        /// </value>
        [ConfigurationProperty("requireDeliverySuccessReceipt", IsRequired = false, IsKey = false)]
        public bool RequireDeliverySuccessReceipt
        {
            get { return (bool)this["requireDeliverySuccessReceipt"]; }
            set { this["requireDeliverySuccessReceipt"] = value; }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [require delivery error receipt].
        /// </summary>
        /// <value>
        /// <c>true</c> if [require delivery error receipt]; otherwise, <c>false</c>.
        /// </value>
        [ConfigurationProperty("requireDeliveryErrorReceipt", IsRequired = false, IsKey = false)]
        public bool RequireDeliveryErrorReceipt
        {
            get { return (bool)this["requireDeliveryErrorReceipt"]; }
            set { this["requireDeliveryErrorReceipt"] = value; }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [require read receipt].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [require read receipt]; otherwise, <c>false</c>.
        /// </value>
        [ConfigurationProperty("requireReadReceipt", IsRequired = false, IsKey = false)]
        public bool RequireReadReceipt
        {
            get { return (bool)this["requireReadReceipt"]; }
            set { this["requireReadReceipt"] = value; }
        }

        public EmailDeliverySettings()
        {

        }
    }
}
